package org.example.enums;

/**
 * @description:
 * @author: 谢超
 * @date: 2024/8/13 15:53
 */
public enum JsonCodeEnum {
    SUCCESS(200, "成功"),
    FAIL(-1, "失败");

    private int code;

    private String msg;

    JsonCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
